package com.flong.gui;

import java.awt.Point;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;

import com.flong.gui.MyFrame88;

/**
 * @Author:liangjilong
 * @Date:2015年11月19日-上午10:16:17
 * @Email:jilonglinag@sina.com
 * @Version:1.0
 * @Description:
 */
public class Monitor2   extends MouseMotionAdapter {
	  private int num = 0;
	  public void mouseMoved(MouseEvent e) {
	    MyFrame88 f = (MyFrame88)e.getSource();
	    f.addPoint(new Point(e.getX(),e.getY()));
	    if(num++ >= 5){
	      f.repaint();
	      num=0;
	    }
	   }
	}
